package com.ansuenjob.jsonBuilder;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONException;

import com.ansuenjob.vo.InterviewRecordVO;


public class InterviewVoFunctions {
	public static List<InterviewRecordVO> getInterviewRecordVos(JSONArray jsonArray) throws JSONException {
		InterviewVoBuilder builder = new InterviewVoBuilder();
		List<InterviewRecordVO> interviewRecordVOst = new ArrayList<InterviewRecordVO>();
		for (int i = 0; i < jsonArray.length(); i++) {
			interviewRecordVOst.add(builder.buildJson(jsonArray.getJSONObject(i)));
		}
		return interviewRecordVOst;
	}
}
